package demo;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-07-07
 * Time: 9:54
 */
public class Test {
    public static void func(String str1,String str2){
        List<Character> list = new ArrayList<>();
        for (int i = 0; i < str1.length(); i++) {
            char ch = str1.charAt(i);
            if(!str2.contains(ch+"")){
                list.add(ch);
            }
        }
        for (int i = 0; i < list.size(); i++) {
            System.out.print(list.get(i));

        }
    }

    public static void main(String[] args) {
        func("welcome to bit","come");
    }
    public static void main1(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("abc");
        arrayList.add("ccc");

/*        ArrayList<Integer> arrayList1 = new ArrayList<>();
        List<String> list = new ArrayList<>(arrayList1);*/



    }
}
